<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // 比较运算符

        let a = 10;
        let b = 20;
        let c = 10;
        let d = '10';

        // 1.等于
        console.log(a == b); // false
        console.log(a == c); // true
        console.log(a == d); // true

        // 2.全等于
        console.log(a === b); // false
        console.log(a === c); // true
        console.log(a === d); // false

        // 3.不等于
        console.log(a != b); // true
        console.log(a != c); // false
        console.log(a != d); // false

        // 4.不全等于
        console.log(a !== b); // true
        console.log(a !== c); // false
        console.log(a !== d); // true

        // 5.大于
        console.log(a > b); // false
        console.log(a > c); // false
        console.log(a > d); // false

        // 6.大于等于
        console.log(a >= b); // false
        console.log(a >= c); // true
        console.log(a >= d); // true

        // 7.小于
        console.log(a < b); // true
        console.log(a < c); // false
        console.log(a < d); // false

        // 8.小于等于
        console.log(a <= b); // true
        console.log(a <= c); // true
        console.log(a <= d); // true
        
        // 9.等于
        console.log(a == b); // true
        console.log(a == c); // false
        console.log(a == d); // false

        // 10.严格等于
        console.log(a === b); // false
        console.log(a === c); // false
        console.log(a === d); // false

        

    </script>
</body>
</html>